package pl.veneo.wigprofit.model.items {
	/**
	 * @author Tomasz Swierszcz, fiodorkrk@gmail.com
	 */
	public class PercentData extends AbstractDataItem {
		private var _percent : Number;

		public function PercentData(dateString : String = null, percentString : Number = -1) {
			super(dateString);

			if (percentString > -1)
				percent = percentString;
		}

		public function get percent() : Number {
			return _percent;
		}

		public function set percent(percent : Number) : void {
			_percent = percent;
		}

		override public function toString() : String {
			return '[' + date + '] ' + percent + "%";
		}
	}
}
